package lianxi03;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-04-21
 * Time: 13:37
 */
public class ThreadDemo {
    //同时开启两个线程,共同获取1-100之间的所有数字
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("caijun");
        t2.setName("xiaowang");

        t1.start();
        t2.start();
    }
}
